#
#	Create by leon.liyang.wel@gmail.com 2013--12-15
#

CC=gcc

APPLET=llottery

OBJS:= $(patsubst %.c,%.o,$(wildcard *.c))

CFLAGS=-g -Wall
LIBS=
LDFLAGS=

INC=
LIB=

SLIBS=

all:$(APPLET)
$(APPLET):${OBJS}	
#	$(CC) $(CFLAGS) $(INC) $(LIB) $^ -o $@ $(LDFLAGS)
	$(CC) $(CFLAGS) $(INC) $(LIB) $(LIBS) -o $@ $^ $(SLIBS) $(LDFLAGS)

#%.o:%.c	
#	$(CC) -c $(CFLAGS) $(INC) $(LIB) $^ -o $@   

install:
	@strip $(APPLET)
	
clean:
	@rm -rf $(APPLET) $(OBJS)

showinfo:	
	@echo "==show information=="	
	@echo $(OBJS)
